package cn.stylefeng.guns.modular.service.impl;

import cn.stylefeng.guns.modular.entity.ScheduleFrame;
import cn.stylefeng.guns.modular.mapper.ScheduleDraftMapper;
import cn.stylefeng.guns.modular.service.ScheduleDraftService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ScheduleDraftServiceImpl implements ScheduleDraftService {
    @Resource
    private ScheduleDraftMapper scheduleDraftMapper;

    /**
     * 查询放在首页的最新的三个草稿框架
     * @param userId
     * @return
     */
    public List<ScheduleFrame> showScheduleDraftLimitThree(@Param("userId") long userId){
        return scheduleDraftMapper.showScheduleDraftLimitThree(userId);
    }
}
